<div id="topHrzPane">
    <div id="LoginOrSignup">
        <?php $isGuest = Yii::app()->user->isGuest; ?>
        <span id="Guest" style="display:<?php echo $isGuest? 'inline-block':'none'; ?>">
            <?php
                $login = CHtml::link("Log in", array("site/login"));
                $signup = CHtml::link("Sign up", array("account/register"));
                echo "$login or $signup";
            ?>
        </span><!--guest-->
        <span id="nonGuest" style="display:<?php echo !$isGuest? 'inline-block':'none'; ?>">
            <?php
                //welcome
                $username = Yii::app()->user->name;
                $userLink = CHtml::link(
                    $username,
                    array("account/changeProfile")
                );
                $welcome = "Welcome $userLink !";

                //sign out
                $logout = CHtml::link("Sign out", array("site/logout"));
                echo "$welcome $logout";
            ?>
        </span><!--nonguest-->
    </div><!--Log in or Sign up-->
</div>

<div id="logo">
    <span id="OwnerName"><?php echo Yii::app()->params['ownerName']; ?></span>
    &nbsp;
    <span id="AppInitial"><?php echo Yii::app()->params['appInitial']; ?></span>
    <br/>
    <span id="AppName"><?php echo Yii::app()->name; ?></span>
</div>
